$(function() {
	$.common.initFormInfo();
});

$("#editForm").validate({
	onkeyup: false,
	rules:{
	    name: {
	        required: true
	    },
	    code: {
	        required: true
	    },
	    status: {
	        required: true
	    },
	    startTime: {
	        required: true
	    },
	    endTime: {
	        required: true
	    }
	},
	messages: {
		name: {
	        required: "请输入租户名称"
	    },
	    code: {
	        required: "请输入租户编码"
	    },
	    status: {
	        required: "请选择租户状态"
	    },
	    startTime: {
	        required: "请选择开始时间"
	    },
	    endTime: {
	        required: "请选择结束时间"
	    }
	},
    focusCleanup: true
});


function submitHandler() {
	if ($.validate.form()) {
		$.common.ajaxCommitForm($('#editForm'),false);
    	return false;
	}
}